package com.topisv.tms.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Version;

/**
 * sku网点总库存汇总
 * @author Administrator
 *
 */
@Entity
@Table(name = "cus_stock_merge")
public class CusStockMerge extends IdEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String sku;// varchar(60) DEFAULT NULL COMMENT '商品SKU',
	private String customerCode;//  varchar(30) DEFAULT NULL COMMENT '所属商家编码',
	private String warehouseCode;//  varchar(60) DEFAULT NULL COMMENT '仓库编码',
	private int  salesNum ;// int(11) DEFAULT '0' COMMENT '可销售_商品数量',
	private int  orderNum;//  int(11) DEFAULT '0' COMMENT '订单占用_商品数量',
	private Date  lastmodifyTime;//  datetime DEFAULT NULL COMMENT '最后修改时间',
	private int version;
	
	private Long stockSalesNum;
	
	@Transient
	public Long getStockSalesNum() {
		return stockSalesNum;
	}
	public void setStockSalesNum(Long stockSalesNum) {
		this.stockSalesNum = stockSalesNum;
	}
	@Version
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public String getSku() {
		return sku;
	}
	public void setSku(String sku) {
		this.sku = sku;
	}
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	public String getWarehouseCode() {
		return warehouseCode;
	}
	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}
	public int getSalesNum() {
		return salesNum;
	}
	public void setSalesNum(int salesNum) {
		this.salesNum = salesNum;
	}
	public int getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}
	public Date getLastmodifyTime() {
		return lastmodifyTime;
	}
	public void setLastmodifyTime(Date lastmodifyTime) {
		this.lastmodifyTime = lastmodifyTime;
	}
	public String getJobuuid() {
		return jobuuid;
	}
	public void setJobuuid(String jobuuid) {
		this.jobuuid = jobuuid;
	}
	private String  jobuuid ;// varchar(50) DEFAULT NULL COMMENT '最后操作人ID',
}
